export default { // 处理localStorage
    get(name: string) {
        const value = window.localStorage.getItem(name);
        return value && window.JSON.parse(value);
    },
    set(name: string, content: any) {
        window.localStorage.setItem(name,  window.JSON.stringify(content));
    }
}
